<?php
if ($view->result === true)
{
    echo '<div class="alert alert-success">';
    echo 'La ruta se programo con éxito.';
    echo '</div>';
}
else if ($view->result === false)
{
    echo '<div class="alert alert-danger">';
    echo 'Formato de fecha incorrecto';
    echo '</div>';
}
?>
<form method="post" role="form">
    <div class="form-group row">
        <div class="col-lg-3">
            <label>Fecha (yyyy-mm-dd)</label>
            <input type="date" name="date" id="dateRoot" class="form-control" required="required"/>
        </div>
    </div>
    <div class="form-group">
        <label>Hora</label>
        <br/>
        <div class="pull-left">
            <select class="form-control input-small" name="hours" >
                <option>00</option>
                <option>01</option>
                <option>02</option>
                <option>03</option>
                <option>04</option>
                <option>05</option>
                <option>06</option>
                <option>07</option>
                <option>08</option>
                <option>09</option>
                <option>10</option>
                <option>11</option>
                <option>12</option>
                <option>13</option>
                <option>14</option>
                <option>15</option>
                <option>16</option>
                <option>17</option>
                <option>18</option>
                <option>19</option>
                <option>20</option>
                <option>21</option>
                <option>22</option>
                <option>23</option>
            </select>
        </div>
        <div class="pull-left">
            &nbsp;:&nbsp;
        </div>
        <div class="pull-left">
            <select class="form-control input-mini" name="mins" >
                <option>00</option>
                <option>05</option>
                <option>10</option>
                <option>15</option>
                <option>20</option>
                <option>25</option>
                <option>30</option>
                <option>35</option>
                <option>40</option>
                <option>45</option>
                <option>50</option>
                <option>55</option>
            </select>
        </div>
    </div>
    <br/>
    <br/>
    <button type="submit" class="btn btn-primary">Agregar programación de ruta</button>
</form>
